package co.yixiang.util

import me.liuwj.ktorm.schema.BaseTable
import me.liuwj.ktorm.schema.boolean
import me.liuwj.ktorm.schema.datetime
import me.liuwj.ktorm.schema.long

/**
 * @author : 华清松
 * @description : 数据库表通用字段
 */
abstract class MBaseTable<T : Any>(name: String, alias: String?) : BaseTable<T>(name, alias) {

    val id = long("id").primaryKey()
    val createBy = long("create_by")
    val createTime = datetime("create_time")
    val updateTime = datetime("update_time")
    val deleted = boolean("deleted")
}

